# detect operating system
ifeq ($(OS),Windows_NT)
    CURRENT_OS := Windows
else
    CURRENT_OS := $(shell uname -s)
endif

#GOBIN
GOBIN = $(shell pwd)/build/bin
GO ?= latest

# variables
BUILD_FLAGS = -tags netgo

all: build

buildquick:
	echo BUILD_FLAGS=$(BUILD_FLAGS)	
	@go build  $(BUILD_FLAGS) -o ./build/algorithm-intv-1-2 ./algorithm/intv-1/2
	@go build  $(BUILD_FLAGS) -o ./build/algorithm-intv-1-3 ./algorithm/intv-1/3
	@go build  $(BUILD_FLAGS) -o ./build/algorithm-intv-1-4 ./algorithm/intv-1/4


build: buildquick

clean:
	rm -rf ./build

.PHONY: build 